﻿<Window x:Class="SampleProject.NoTabCloseWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tab="http://fabtab.codeplex.com"
        xmlns:local="clr-namespace:SampleProject"
    Title="NoTabCloseWindow" Height="600" Width="800">
    <Window.Resources>
        <Style TargetType="{x:Type tab:FabTabItem}">
            <Setter Property="Header" Value="{Binding Path=LabelText}"/>
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Label Content="{Binding}"/>
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <DockPanel>
        <StackPanel Orientation="Vertical" DockPanel.Dock="Right" >
            <Button Content="Add Tab"/>
            
        </StackPanel>
        <tab:FabTabControl DockPanel.Dock="Left" x:Name="tabControl" MinWidth="300"
                                 ShowTabCloseButtons="False"  ShowToolTipImages="False">
            <tab:FabTabControl.Items>
                <tab:FabTabItem Header="My View 1">
                    <local:SampleView LabelText="View 1"/>
                </tab:FabTabItem>
                <tab:FabTabItem Header="My View 2">
                    <local:SampleView LabelText="View 2"/>
                </tab:FabTabItem>
                <tab:FabTabItem Header="My View 3">
                    <local:SampleView LabelText="View 3"/>
                </tab:FabTabItem>
                <local:SampleView LabelText="Oddball View"/>
                
            </tab:FabTabControl.Items>
        </tab:FabTabControl>



    </DockPanel>
</Window>
